﻿<?php get_header(); ?>
<div id="contentarea">
	<div class="wide">
		<?php include (TEMPLATEPATH . '/ing.php'); ?>
		<div id="clear"></div>
		<?php if(is_home()) query_posts("showposts=4"); ?>
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<div class="navigation">
				<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
				<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
			</div>
			<div id="clear"></div>
			<div class="postinfo">
				<h2 id="post-<?php the_ID();?>">
				<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
				</h2>
				<span class="alignleft">Date: <?php the_time("m/d/Y") ?> Tag: <?php the_category(',') ?> <?php edit_post_link(__('Edit This')); ?></span>
				<span class="alignright"><a href="#comments" title="<?php _e("See comments"); ?>"><?php comments_number(__('No Comments'), __('1 Comment'), __('% Comments')); ?></a></span>
			</div>
			<?php the_content(__('(more...)')); ?>
			<p class="title"><?php comments_rss_link(__('<abbr title="Really Simple Syndication">RSS</abbr> feed for comments on this post.')); ?>
			<?php if ( pings_open() ) : ?>
				<a href="<?php trackback_url() ?>" rel="trackback"><?php _e('TrackBack <abbr title="Universal Resource Locator">URL</abbr>'); ?></a>
			<?php endif; ?>
			</p>
			<div class="navigation">
				<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
				<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
			</div>
			<div id="clear"></div>
			
			<?php comments_template(); // Get wp-comments.php template ?>
		<?php endwhile; else: ?>
		<h2><?php _e('Not Found'); ?></h2>
		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
		<?php endif; ?>
	</div>
	<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
